package ecstore.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import ecstore.client.dataOperation.ItemInfo;


/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("storage")
public interface DataStorageService extends RemoteService {
	String DataStorageService(String name) throws IllegalArgumentException;
	Boolean addItemService(String category, String brand, String name, float price, String size, String description,
			String thumbnail, String image, int itemStock, int itemRecmdStock) throws IllegalArgumentException;
//	 used for add tobacco which has position properties
	Boolean addItemService(String category, String brand, String name, float price, String size, String description,
			String thumbnail, String image, int Window, int row, int col, int itemStock, int itemRecmdStock) throws IllegalArgumentException;
	List<ItemInfo> getTobacco() throws IllegalArgumentException;
	
	// A general item query for the datastore
	List<ItemInfo> getItems(String filter) throws IllegalArgumentException;
	
	Boolean updateItem(String key, ItemInfo itemInfo) throws IllegalArgumentException;
}
